package com.cutePet.pet.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.cutePet.pet.dao.VarietyDao;
import com.cutePet.pet.domain.VarietyDO;
import com.cutePet.pet.service.VarietyService;



@Service
public class VarietyServiceImpl implements VarietyService {
	@Autowired
	private VarietyDao varietyDao;
	
	@Override
	public VarietyDO get(Long varietyId){
		return varietyDao.get(varietyId);
	}
	
	@Override
	public List<VarietyDO> list(Map<String, Object> map){
		return varietyDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return varietyDao.count(map);
	}
	
	@Override
	public int save(VarietyDO variety){
		return varietyDao.save(variety);
	}
	
	@Override
	public int update(VarietyDO variety){
		return varietyDao.update(variety);
	}
	
	@Override
	public int remove(Long varietyId){
		return varietyDao.remove(varietyId);
	}
	
	@Override
	public int batchRemove(Long[] varietyIds){
		return varietyDao.batchRemove(varietyIds);
	}
	
}
